projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
160bde9
)
(xmenu_show): Call inhibit_garbage_collection.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 22 Dec 2005 23:30:36 +0000
(23:30 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 22 Dec 2005 23:30:36 +0000
(23:30 +0000)
src/xmenu.c
patch
|
blob
|
history
diff --git
a/src/xmenu.c
b/src/xmenu.c
index c6640916f3237f7e587c226c97784a552dc40074..51867f0478f9cb9d25160da1628fab7a045b44f7 100644
(file)
--- a/
src/xmenu.c
+++ b/
src/xmenu.c
@@
-3343,6
+3343,11
@@
xmenu_show (f, x, y, for_click, keymaps, title, error)
return Qnil;
}
+ /* Don't GC while we prepare and show the menu,
+ because we give the oldxmenu library pointers to the
+ contents of strings. */
+ inhibit_garbage_collection ();
+
#ifdef HAVE_X_WINDOWS
/* Adjust coordinates to relative to the outer (window manager) window. */
x += FRAME_OUTER_TO_INNER_DIFF_X (f);